//package com.zhongan.user.service.impl;
//
//import com.zhongan.common.annotations.ApiMethod;
//import com.zhongan.common.annotations.ApiParam;
//import com.zhongan.common.annotations.ApiService;
//import com.zhongan.common.dto.ResultBase;
//import com.zhongan.user.api.dto.UserDto;
//import com.zhongan.user.api.service.UserService;
//import com.zhongan.user.repository.UsersRepository;
//import org.apache.log4j.Logger;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
///**
// * 用户服务接口实现
// *
// * @author za-shaojian
// */
//@Service
//@ApiService(serviceSystemCode = "user", serviceSystemDescription = "用户体系服务")
//public class UserServiceImpl implements UserService {
//    private final Logger logger = Logger.getLogger(getClass());
//
//    @Autowired
//    private UsersRepository userRepository;
//
//    @ApiMethod(value = "user.findByUsername", descript = "根据用户名查询用户信息", serviceResult = "Integer", apiParams = {@ApiParam(name = "userName", paramType = "String", isNull = false, descript = "用户名"),
//            @ApiParam(name = "userType", isNull = false, descript = "用户类型", paramType = "String")})
//    public ResultBase<UserDto> findByUsername(String userName) {
//        ResultBase<UserDto> result = new ResultBase<UserDto>();
//        result.setValue(userRepository.findByUsername(userName));
//        return result;
//    }
//
//    @ApiMethod(value = "user.add", descript = "两个数相加", serviceResult = "Integer", apiParams = {@ApiParam(name = "a", isNull = false, descript = "加数a", paramType = "Integer"),
//            @ApiParam(name = "b", isNull = false, descript = "加数b", paramType = "Integer")})
//    public ResultBase<Integer> add(Integer a, Integer b) {
//        ResultBase<Integer> result = new ResultBase<Integer>();
//        result.setValue(5);
//        return result;
//    }
//}
